home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-2002 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: TreeTable
- @Method: addColumn(name, format, width)~adds a column to the TreeTable.
- The format value can be a -1 for left aligned (the default), a 0 for
- center aligned or a 1 for right aligned. The width value is in pixels.
- The default is set the width to equal values.
- @Syntax: treetable.addColumn(name, format, width)
- @Summary: addColumn(name, format, width)~adds a column to the TreeTable
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("treetable.addColumn(name, format, width);", selection);
- editor.setActive("Insert treetable.addColumn");
- }
- }
-
- !!/Script